<template>
    <div class="fillcontain">

        <el-row class="fillcontain">
            <el-col :span="4" style="min-height: 100%; background-color: #324157;">
                <!-- <el-radio-group v-model="isCollapse" class="btn_sp">
                    <button class="btn btn-default" @click="layOut()" style="float:right;margin-right:20px;margin-top: 20px;"><i class="el-icon-menu" style="font-size: 20px;"></i></button>
                </el-radio-group> -->
                <el-menu default-active="2-4-1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse" theme="dark" router >
                    <el-menu-item index="Page" style="color: #20a0ff;"><i class="el-icon-menu"></i>首页</el-menu-item>

                    <el-submenu in index="2">
                        <template slot="title"><i class="el-icon-document"></i>数据管理</template>
                        <el-menu-item index="UserList">用户列表</el-menu-item>
                        <!-- <el-menu-item index="UserList">商家列表</el-menu-item>
                        <el-menu-item index="UserList">食品列表</el-menu-item>
 -->                        <el-menu-item index="OrderList">订单列表</el-menu-item>
                        <!-- <el-menu-item index="OrderList">管理员列表</el-menu-item> -->
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title"><i class="el-icon-plus"></i>商城管理</template>
                        <!-- <el-menu-item index="addShop">添加商铺</el-menu-item> -->
                        <el-menu-item index="shopList">商品列表</el-menu-item>
                    </el-submenu>
                    <el-submenu index="4">
                        <template slot="title"><i class="el-icon-star-on"></i>图表</template>
                        <el-menu-item index="visitor">用户分布</el-menu-item>
                        <!-- <el-menu-item index="newMember">用户数据</el-menu-item> -->
                    </el-submenu>
                    <el-submenu index="5">
                        <template slot="title"><i class="el-icon-edit"></i>编辑</template>
                        <!-- <el-menu-item index="uploadImg">上传图片</el-menu-item> -->
                        <el-menu-item index="vueEdit">文本编辑</el-menu-item>
                    </el-submenu>
                    <el-submenu index="6">
                        <template slot="title"><i class="el-icon-setting"></i>设置</template>
                        <el-menu-item index="adminSet">管理员设置</el-menu-item>
                        <!-- <el-menu-item index="sendMessage">发送通知</el-menu-item> -->
                    </el-submenu>
                    <el-submenu index="7">
                        <template slot="title"><i class="el-icon-warning"></i>说明</template>
                        <el-menu-item index="explain">说明</el-menu-item>
                    </el-submenu>
                </el-menu>
            </el-col>
            <el-col :span="20" style="height: 100%;overflow: auto;">
                <keep-alive>
                    <router-view></router-view>
                </keep-alive>
            </el-col>   
        </el-row>


    </div>
</template>

<script>

export default {
    name: 'Page',
    data () {
        return {
            isCollapse: false
        }
    },
    mounted(){
        
    },
    created () {

    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        },
        layOut(){
            this.isCollapse = !this.isCollapse;
        }
    },
    components: {
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.shop_box{
    width: 100%;
}
.el-menu{

}
.btn_sp{
    width: 100%; height: 60px;
}
</style>
